Test   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 8
dl 0
loc 15
c 0
b 0
f 0
rs 10

3 Functions

Rating   Name   Duplication   Size   Complexity  
A setTmpFolder 0 3 1
A cleanTmpFolder 0 3 1
A setPacker 0 5 1
1
import fse from 'fs-extra';
2
import { tmpFolder } from './constants';
3
4
export * from './utils';
5
// eslint-disable-next-line import/export
6
export * from './constants';
7
8
export default class Test {
9
    async setTmpFolder() {
10
        await fse.ensureDir(tmpFolder);
11
    }
12
13
    async setPacker(Packer) {
14
        this.packer = new Packer();
15
16
        return this.packer;
17
    }
18
19
    async cleanTmpFolder() {
20
        await fse.remove(tmpFolder);
21
    }
22
}
23
24